package com.tqfframe.rabbitmq.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * 使用对象传递消息时，必须要写一个空构造函数
 * @author: Qifeng Tang
 * @date: 2022/8/31 15:56
 * @Version 1.01
 **/
@Data
//@AllArgsConstructor
public class TestEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    private String a;

    private String b;

    public TestEntity(String a, String b) {
        this.a = a;
        this.b = b;
    }

    public TestEntity() {
    }
}
